package net.starwifi.duobao.web.dMember;

import net.starwifi.duobao.mvc.BaseController;
import net.starwifi.duobao.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by ruoo on 16/1/10.
 */
@Controller("wapDMemberWinController")
@RequestMapping("/dMember")
public class DMemberWinController extends BaseController {

    @Autowired
    MemberService memberService;

    /**
     * 用户中奖记录
     */
    @RequestMapping(value = "/win", method = RequestMethod.GET)
    public String db(Model model) {
        model.addAttribute("member",memberService.getCurrent());
        return "/dMember/win";
    }


}
